package com.zmzncs.lmtc.common.pojo.miwang;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author 高博文
 * @Date 2020/11/26 9:57
 *
 * ，咪网月租车充值续费接口参数
 */
@Data
public class MWFixedCarSyncMode {

    @ApiModelProperty(value = "业主编号", required = true)
    private String partnerCode;

    @ApiModelProperty(value = "到期时间", required = true)
    private String invalidDate;

    @ApiModelProperty(value = "开通时间", required = true)
    private String validDate;

    @ApiModelProperty(value = "用户名称", required = true)
    private String userName;

    @ApiModelProperty(value = "车位编号")
    private String parkingSpaceNumber;

    @ApiModelProperty(value = "手机号")
    private String mobilePhone;

    @ApiModelProperty(value = "包月描述")
    private String remark;

    @ApiModelProperty(value = "操作类型（开通、续费）", required = true)
    private String operate;

    @ApiModelProperty(value = "包月分组规则编码")
    private String fixedCarRuleCode;

    @ApiModelProperty(value = "金额", required = true)
    private BigDecimal amount;

    @ApiModelProperty(value = "车位数量")
    private int parkingSpaceCount;

    @ApiModelProperty(value = "车牌号集合")
    private List<String> carNumList;

    @ApiModelProperty(value = "车牌信息集合(json格式)")
    private String fixedCarPlateList;

    @ApiModelProperty(value = "客户id", required = true)
    private String fixedCarCode;

    public void setFixedCarPlateList() {
        this.fixedCarPlateList = JSON.toJSONString(carNumList);
    }
}
